<?php if( has_role_id(MyConstants::ROLE_ADMIN) ): ?>
    <?php include_partial(
            'user_info_admin'
            , array(
                'user' => $user
            )) ?>
<?php elseif( get_user_id() ): ?>
    <?php include_partial(
            'user_info'
            , array(
                'user' => $user
            )) ?>
<?php else: ?>
    <?php echo __('You are not allowed to view user info') ?>
<?php endif; ?>
